package com.ouwen.smartpay.facadeimpl.openapi;

import com.ouwen.smartpay.openapi.api.OpenApiNotifyFacade;
import com.ouwen.smartpay.openapi.order.OpenApiNotifyOrder;
import com.ouwen.smartpay.openapi.result.OpenApiNotifyResult;
import org.springframework.stereotype.Service;

/**
 * @author <a href="http://youngitman.tech">青年IT男</a>
 * @version v1.0.0
 * @className OpenApiNotifyFacadeImpl
 * @description 接入系统实现的通知接口 注意：由于OpenApi上层增加了转换层所有这里没有暴露为RPC服务
 * @JunitTest: {@link  }
 * @date 2020-05-06 10:18
 **/
@Service
public class OpenApiNotifyFacadeImpl implements OpenApiNotifyFacade {


    @Override
    public OpenApiNotifyResult notify(OpenApiNotifyOrder order) {

        OpenApiNotifyResult result = new OpenApiNotifyResult();

        //通知业务调用方

//        NotifyServiceResult notifyServiceResult = notifyServiceFacade.notify(conversion(order));
//
//        BeanCopier.copy(notifyServiceResult, result);

        return result;
    }

}
